﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace OnlineGameLibrary.Contract
{
    [DataContract(Namespace = "http://gameservice")]
    public class GameInfo
    {
        [DataMember]
        public string GameName { set; get; }

        [DataMember]
        public string Description { set; get; }

        [DataMember]
        public string GameClientComponentUri { set; get; }

        [DataMember]
        public List<GameConfigItemDefine> GameConfigDefines { set; get; }
    
        [DataMember]
        public string IdentityName { get; set; }

        [DataMember]
        public int MaxPlayerNumber { set; get; }

        [DataMember]
        public int MinPlayerNumber { set; get; }
    }

    [DataContract(Namespace = "http://gameservice")]
    public class GameConfigItemDefine
    {
        [DataMember]
        public string ConfigName { set; get; }

        [DataMember]
        public string Description { set; get; }

        [DataMember]
        public string ConfigConstrant { set; get; }

        [DataMember]
        public string ConfigValueType { set; get; }
        
        [DataMember]
        public object DefaultValue { set; get; }
    }
}
